/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: RxBaseDbMust
 * @Package com.rx.core.dbase
 * @Description: 每个表必须有的字段
 * @author: 陈锦韬
 * @date: 2021\6\10 0010
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.core.dbase;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.rx.core.base.RxBaseData;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author: Administrator
 * @Description: 每个表必须有的字段
 * @date: 2021\6\10 0010
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class RxBaseDbMust extends RxBaseData {
    public static final String BID = "bid";
    public static final String VER = "ver";
    public static final String VALID = "valid";
    public static final String ID = "id";
    /**
     * 主键ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private transient Long id;
    /**
     * BID
     */
    @TableId(value = "BID", type = IdType.UUID)
    private String bid;

    /**
     * 版本
     */
    @TableField("VER")
    private Long ver;

    /**
     * 记录状态 0-删除 1-正常 2-无效
     */
    @TableLogic
    @TableField("VALID")
    private String valid;
}
